package indi.defoliation.unknownrpg.api.config;

import java.util.ArrayList;
import java.util.List;

import indi.defoliation.unknownrpg.core.UnknownRPG;

public class LoreYamlConfig{
	
	private static YamlConfigurer CONFIG;
	
	public static void init(UnknownRPG plugin) {
		CONFIG = new YamlConfigurer(plugin,"lore.yml");
	}
	
	public static List<String> getLore(String loreName){
		ArrayList<String> list = CONFIG.get(loreName);
		if(list==null)
			return new ArrayList<String>();
		return list;
	}
	
	public static void reload() {
		CONFIG.reload();
	}
}
